const commentPost = require('../models/commentPost');
// 商品评论
exports.CommodityReview = async function(commodityId) {
        // if(){}
        const result = await commentPost.findAll({
            where: {
                commodityId
            }
        });
        return {
            result
        }
    }
    // 发表评论
exports.commentPublished = async function(params) {
    const result = await commentPost.create(params);
    return result;


}